
package com.insigma.business.qrcode.intell.dao;

import com.insigma.business.qrcode.intell.dto.CommonPolicyBSearcher;
import com.insigma.business.qrcode.intell.entity.CommonPolicyDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonPolicyDao {

    
    List<CommonPolicyDO> search(final CommonPolicyBSearcher innerSearcher);

    
    CommonPolicyDO get(final String id);

    
    Integer getMaxTopWeight();

    
    Integer insert(final CommonPolicyDO commonPolicyDO);

    
    Integer update(final CommonPolicyDO commonPolicyDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

}
